import { http } from "@/utils/http";

type Result<T> = {
  success: boolean;
  data?: T;
};

/** 卡片列表 */
export const getDemoList = <T>(data?: object) => {
  return http.request<Result<T>>("post", "/datalist", { data });
};
/** 卡片列表 */
export const getChartList = <T>(data?: object) => {
  return http.request<Result<T>>("post", "/datachart", { data });
};
